#ifndef JNIMANAGER_H
#define JNIMANAGER_H

#include <QDebug>
#include <QFile>
#ifdef Q_OS_ANDROID
#include <QtAndroid>
#include <QAndroidJniObject>
#include <QAndroidJniEnvironment>
#include <unistd.h>
#include <QAndroidActivityResultReceiver>



class JNIManager
{


private:
    JNIManager();
public:
    static JNIManager& I();

public:

    // 本地文件
    QStringList     getFileList(QString path = "");

    // SMB文件
    QStringList     getFileList_SMB(QString ip, QString usr, QString pwd, QString path);
    bool            uploadFile_SMB(QString ip, QString usr, QString pwd, QString remotePath, QString localPath);
    bool            downloadFile_SMB(QString ip, QString usr, QString pwd, QString remotePath, QString localPath);
    QString         getAppPath();   // 获取App安装路径
    QStringList     getUSBPath();   // 获取App安装路径

    void            uploadDBFile();

};

#endif // JNIMANAGER_H
#endif
